﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Minestorm.Evolved.IoC
{
	public class ConstructorInfoComparer : IComparer<ConstructorInfo>
	{
		#region IComparer<ConstructorInfo> Members

		public Int32 Compare(ConstructorInfo x, ConstructorInfo y)
		{
			//Reversed: Most -> Least
			return y.GetParameters().Length.CompareTo(x.GetParameters().Length);
		}

		#endregion
	}
}
